home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-02 | 3.5 KB | 134 lines | [TEXT/MMCC] |
- /*
- File: NuMathComponentPrivate.h
-
- Contains: Private header file for NuMath component routines.
-
- Written by: Gary Woodcock
-
- Copyright: © 1992 by Apple Computer, Inc.
-
- Change History (most recent first):
-
- */
-
- //-----------------------------------------------------------------------
- // Includes
-
- #ifndef _NUMATHCOMPONENTPRIVATE_
- #define _NUMATHCOMPONENTPRIVATE_
-
- #include <QuickTimeComponents.h>
-
- //-----------------------------------------------------------------------
- // The following is defined in the PPC InterfaceLib but was left out of the
- // latest headers!
-
- extern UniversalProcPtr CallComponentUPP;
-
- //-----------------------------------------------------------------------
- // Private constants
-
- // Maximum number of instances that can be opened
- enum
- {
- kMaxNuMathInstances = 1
- };
-
- // Component and interface revision levels
- enum
- {
- nuMathInterfaceRevision = 0x00010001
- };
-
-
- //-----------------------------------------------------------------------
- // Private prototypes
-
- #ifdef DEBUG_IT
-
- // Only need this prototype if we're running linked (for debugging)
- pascal ComponentResult NuMathDispatcher (ComponentParameters *params,
- Handle storage);
-
- #endif DEBUG_IT
-
- pascal ComponentResult NuMathOpen (ComponentInstance self);
-
- pascal ComponentResult NuMathClose (Handle storage,
- ComponentInstance self);
-
- pascal ComponentResult NuMathCanDo (short selector);
-
- pascal ComponentResult NuMathVersion (void);
-
- pascal ComponentResult NuMathRegister (void);
-
- pascal ComponentResult NuMathDoDivide (short numerator,
- short denominator,
- short *quotient);
-
- pascal ComponentResult NuMathDoMultiply (Handle storage,
- short firstNum,
- short secondNum,
- short *multiplicationResult);
-
- //-----------------------------------------------------------------------
-
- enum {
- uppNuMathOpenProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(ComponentInstance)))
- };
-
- enum {
- uppNuMathCloseProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Handle)))
- | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(ComponentInstance)))
- };
-
-
- enum {
- uppNuMathCanDoProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(short)))
- };
-
-
- enum {
- uppNuMathVersionProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- };
-
- enum {
- uppNuMathRegisterProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- };
-
-
- enum {
- uppNuMathDoDivideProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(short)))
- | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
- | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(short*)))
- };
-
- enum {
- uppNuMathDoMultiplyProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(ComponentResult)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Handle)))
- | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
- | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(short)))
- | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(short*)))
- };
-
-
-
-
- //-----------------------------------------------------------------------
-
- #endif _NUMATHCOMPONENTPRIVATE_
-
- //-----------------------------------------------------------------------
-